package com.oa.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * OaRole entity. @author MyEclipse Persistence Tools
 */

public class OaRole implements java.io.Serializable {

	// Fields

	private Long rid;
	private Long rcode;
	private String rname;
	private String rdesc;
	private Set emps = new HashSet(0);
	private Set roleAuths = new HashSet(0);

	// Constructors

	/** default constructor */
	public OaRole() {
	}

	/** minimal constructor */
	public OaRole(Long rid) {
		this.rid = rid;
	}

	/** full constructor */
	public OaRole(Long rid, Long rcode, String rname, String rdesc, Set emps,
			Set roleAuths) {
		this.rid = rid;
		this.rcode = rcode;
		this.rname = rname;
		this.rdesc = rdesc;
		this.emps = emps;
		this.roleAuths = roleAuths;
	}

	// Property accessors

	public Long getRid() {
		return this.rid;
	}

	public void setRid(Long rid) {
		this.rid = rid;
	}

	public Long getRcode() {
		return this.rcode;
	}

	public void setRcode(Long rcode) {
		this.rcode = rcode;
	}

	public String getRname() {
		return this.rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public String getRdesc() {
		return this.rdesc;
	}

	public void setRdesc(String rdesc) {
		this.rdesc = rdesc;
	}

	public Set getEmps() {
		return this.emps;
	}

	public void setEmps(Set emps) {
		this.emps = emps;
	}

	public Set getRoleAuths() {
		return this.roleAuths;
	}

	public void setRoleAuths(Set roleAuths) {
		this.roleAuths = roleAuths;
	}

}